<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>用户登陆</title>
<link rel="stylesheet" type="text/css" href="<%=path %>/resource/style/css.css " />

<script type="text/javascript" src="<%=path %>/resource/js/jquery.js"></script>


	<script type="text/javascript">
		$(function(){	
			$('#loginBtn').click(function(){
				var name = $('#name').val();
				var password = $('#password').val();
				$.post("<%=basePath%>/user/validateLogin.action",{name:name,password:password}	,function(data){
					if(data == "error"){
						alert("用户名或密码错误！");
					}else{
						$('#loginBtnForm').submit();
					}
				});
			});
		
		});
    </script>





</head>

<body>
<div class="FullPage">
 <!--顶部样式开始-->
	   <div class="MainTop">
         <div class="TopBox"> 
	      <div class="TopLeft"><img src="<%=path %>/resource/images/XingTag.jpg" /><a href="#">收藏思科</a></div>
		  <div class="TopCenter">
		  <div id="www_sike_com">
		  <div id="indemo">
			<div id="demo1">
			您好,欢迎来到思科网!&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			</div>
			<div id="demo2"></div>
			</div>
			</div>
				<script>
<!--
var speed=10;
var tab=document.getElementById("www_sike_com");
var tab1=document.getElementById("demo1");
var tab2=document.getElementById("demo2");
tab2.innerHTML=tab1.innerHTML;
function Marquee(){
if(tab.scrollLeft<=0)
tab.scrollLeft+=tab2.offsetWidth
else{
tab.scrollLeft--;
}
}
var MyMar=setInterval(Marquee,speed);
tab.onmouseover=function() {clearInterval(MyMar)};
tab.onmouseout=function() {MyMar=setInterval(Marquee,speed)};
-->
</script>
		  </div>
		  <div class="TopRight">

		  
		  <a href="<%=basePath%>/user/goPage.action?pageName=login">登录</a>&nbsp;&nbsp;&nbsp;<a href="<%=basePath%>/user/goPage.action?pageName=register">免费注册</a>&nbsp;&nbsp;&nbsp;<a href="#">我的思科</a>&nbsp;&nbsp;&nbsp;<a href="#">特色课程</a>&nbsp;&nbsp;&nbsp;<a href="#">教师服务</a>&nbsp;&nbsp;&nbsp;<a href="#">学生服务</a>
          </div>
          </div>
	      </div>

        <!--顶部样式结束-->
    <div class="RegTopBg">
	<div class="RegLogo"><img src="<%=path %>/resource/images/logo.jpg" /></div>
	    <div class="RegMeun"><a href="#">首页</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href="#">加入我们</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href="#">关于我们</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href="#">我的思科</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>
		

	</div>
			<div class="RegInfo">
		<form action="<%=basePath %>/user/login.action" method="post" id="loginBtnForm">
		  <div class="RegInfoLeft">
		  <div class="UserReg"><img src="<%=path %>/resource/images/reg02.jpg" /></div>
		  <div class="Regtab">
			
		    <table class="InfoTab" >
                    <tr>
                      <td width="65">用户名</td>
                      <td><input type="text" name="name" id="name" class="infoIput01" /></td>
                    </tr>
                     <tr>
                      <td>密码</td>
                      <td><input type="password" name="password" id="password" class="infoIput01" /></td>
                    </tr>
                </table>
				</div>
				 <div class="clear_box"></div>
             <div class="saveBtnStyle0">
               <input type="button" id="loginBtn" class="saveBtn" value="登陆"/>
             </div>     
		    
		  </div>
		  </form>
		  <div class="RegInfoCenter">
		  
		  
		  </div>
		  <div class="RegInfoRight">
		   没有账号？<a href="<%=basePath%>/user/goPage.action?pageName=register">注册>></a>
		  
		  </div>
		
		</div>
	        <div class="clear_box"></div>
        <!--底部样式开始-->
 
          <div class="PageBottom">
         
		  <div class="LineBot">
			 <p>服务热线：020-333888333<br />
			 技术支持：思科教育   教育备案号：就是空间是大家都看得</p>
		  </div>
      </div>
		<!--样式结束-->
</div>
</body>
</html>

